import { EntityModel } from "@midwayjs/orm";
import {Column, PrimaryGeneratedColumn, CreateDateColumn} from 'typeorm'

@EntityModel('announcement')
export class Announcement {
    @PrimaryGeneratedColumn({type: 'bigint'})
    id:number;

    @Column()
    title: string;

    @Column()
    image: string;

    @Column()
    content: string;

    @CreateDateColumn()
    time: Date;

}